package com.io.config;

import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * The class/interface 配置队列
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@SpringBootConfiguration
public class RabbitDirectConfig {
    @Bean
    public Queue queueWork1() {
        return new Queue("queue_work");
    }
}
